xenoprof: Fix support for active domains
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Dec 2009 12:20:08 +0000 (12:20 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Dec 2009 12:20:08 +0000 (12:20 +0000)
commit3cc29c0f268789f120cd5bb5c15b3977bed2c414
treeddb7bae97cabadb4f28006a26545860ccc04d5b3
parent420820e830a012939240db12c52a5d340a4298f1
xenoprof: Fix support for active domains

If a user tries to use opcontrol with option --active-domains in dom0
and then run opcontrol in a guest, no samples are generated. When the
guest calls the xenoprof interface it resets the internal Xenoprof
state machine and profiling does not start

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
xen/common/xenoprof.c